import { UserInfoDetails } from "./info"

// 查询参数
export interface QueryPaginationParams {
  current?: number
  pageSize?: number
  sortField?: string
  sortOrder?: string
}

// 用户详情信息
export interface UserDetailVO {
  id: string
  userVO: UserInfoDetails
  profile: string
  studyingExperience: number
  workTime: number
  workAddress: any[]
  workPrice: number
  workName: string
}

// 企业职位信息
export interface CompanyWorkVO {
  id: string
  companyVO: CompanyVO
  workName: string
  workDescription: string
  workPrice: number
  workAddress: any[]
  workTime: number
  studyingExperience: number
  workStatus: number
  createTime: string
  updateTime: string
}

// 面试数据
export interface InterviewRecord {
  id: string
  userDetailVO: UserDetailVO
  companyWorkVO: CompanyWorkVO
  profile: string
  flowStatus: number
  interviewResult: number
  optionUserVO: UserInfoDetails
  createTime: string
  updateTime: string
}

export interface DeliverResumeParams {
  companyWorkId: string
  userId: string
}

// 用户获取面试进度响应
export type getUserByCompanyResponse = ApiResponseData<PaginationResponse<InterviewRecord[]>>

// 用户同意/拒绝面试参数
export interface InterviewByUserParams {
  companyWorkId: number
  interviewResult: number // 拒绝 - 1 / 通过 - 2
}
